package top.tagao.study01_List;

import java.util.ArrayList;

/**
 * @author fu-xiao-liu
 * @Date 2022/4/14 16:59
 */
public class study_01_ArrayList {
    int a = 1;
    public static void main(String[] args) {
        ArrayList list = new ArrayList ();
        for (int i = 0; i < 10; i++) {
            list.add(i);
        }
        list.add(1);
        list.add(2);
        System.out.println(list.size());
        list.add(1);
        list.add(1);
        for ( Object o: list
             ) {
            System.out.println(o);
        }
    }

    //1.

}